package com.survey.wxapp.controller;

import com.survey.common.annotation.Anonymous;
import com.survey.common.core.controller.BaseController;
import com.survey.common.core.domain.AjaxResult;
import com.survey.common.core.page.TableDataInfo;
import com.survey.system.domain.SurFeedback;
import com.survey.system.service.ISurFeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Anonymous
@RestController
@RequestMapping("/wx/feedback")
public class WxFeedbackController extends BaseController {
    @Autowired
    private ISurFeedbackService surFeedbackService;

    @PostMapping("/list")
    public TableDataInfo list(@RequestBody SurFeedback surFeedback)
    {
        startPage();
        List<SurFeedback> list = surFeedbackService.selectSurFeedbackList(surFeedback);
        return getDataTable(list);
    }
}
